package com.lakeworks.mapper;


import com.lakeworks.common.domain.ticket.TktTicketFile;

import java.util.List;

/**
 * 工单Mapper接口
 *
 * @author lake
 * @date 2023-07-18
 */
public interface TktTicketFileMapper {
    /**
     * 查询工单
     *
     * @param id 工单主键
     * @return 工单
     */
    public TktTicketFile selectTktTicketFileById(Long id);

    /**
     * 查询工单列表
     *
     * @param tktTicketFile 工单
     * @return 工单集合
     */
    public List<TktTicketFile> selectTktTicketFileList(TktTicketFile tktTicketFile);

    /**
     * 新增工单
     *
     * @param tktTicketFile 工单
     * @return 结果
     */
    public int insertTktTicketFile(TktTicketFile tktTicketFile);

    /**
     * 修改工单
     *
     * @param tktTicketFile 工单
     * @return 结果
     */
    public int updateTktTicketFile(TktTicketFile tktTicketFile);

    /**
     * 删除工单
     *
     * @param id 工单主键
     * @return 结果
     */
    public int deleteTktTicketFileById(Long id);

    /**
     * 批量删除工单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTktTicketFileByIds(String[] ids);


    public int deleteFileByTicketId(TktTicketFile tktTicketFile);

    List<TktTicketFile> selectFileByProcessId(Long processId);
}
